package org.file5.util;

import org.apache.log4j.Logger;
import org.file5.service.ServiceFascade;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;

public class FatcatInitializer implements DisposableBean, InitializingBean, ApplicationContextAware{
	private final Logger logger = Logger.getLogger(this.getClass());
	
	@Autowired 
	ServiceFascade sf;

	@Override
	public void destroy() throws Exception {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void afterPropertiesSet() throws Exception {
		logger.info("Spring Application Context loaded,refresh settings from database");
// 		sf.getSettingService().getSettingConfig();
	}

	@Override
	public void setApplicationContext(ApplicationContext arg0)
			throws BeansException {
		// TODO Auto-generated method stub
		
	}



}
